<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link type="text/css" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css" rel="stylesheet"/>
<title>New Faculty page</title>
</head>
<body>

  
  
  <nav class="navbar navbar-inverse" role="navigation">
  <ul class="nav navbar-nav">
       <li class="active"><a href="${pageContext.request.contextPath}/register/list.html">Job</a></li>
      <li><a href="${pageContext.request.contextPath}/faculty/list.html">Faculty</a></li>
      </ul>
      
      <ul class="nav navbar-nav navbar-right">a></li>
       <li><a href="${pageContext.request.contextPath}/faculty/view/${faculty.facultyID}.html">Cancel</a></li>
    </ul>
</nav>


<form:form method="POST" commandName="faculty" action="${pageContext.request.contextPath}/faculty/edit/${faculty.facultyID}.html" >

<div class="panel panel-default">
  <div class="panel-heading">Name</div>
  <div class="panel-body">
<table>
<tbody>
<tr>
<td>First Name:</td>
<td><form:input path="firstName" /></td>
<td><form:errors path="firstName" cssStyle="color: red;"/></td>
<td>Last Name:</td>
<td><form:input path="lastName" /></td>
<td><form:errors path="lastName" cssStyle="color: red;"/></td>
</tr>
</tbody>
</table>
  </div>
</div>


<div class="panel panel-default">
  <div class="panel-heading">Personal Information</div>
  <div class="panel-body">
<table>
<tbody>
<tr>
<td>Date of Birth:</td>
<td><form:input path="dateOfBirth" /></td>
<td><form:errors path="dateOfBirth" cssStyle="color: red;"/></td>
<td>Gender:</td>
<td>
<div class="radio">
  <label>
    <input type="radio" name="gender" id="optionsRadios1" value="Male" checked>
    Male
  </label>
</div>
<div class="radio">
  <label>
    <input type="radio" name="gender" id="optionsRadios2" value="Female">
    Female
  </label>
</div>
</td>
</tr>
</tbody>
</table>
  </div>
</div>


<div class="panel panel-default">
  <div class="panel-heading">Faculty Information</div>
  <div class="panel-body">
<table>
<tbody>
<tr>
<td>Department:</td>
<td><form:input path="department" /></td>
<td><form:errors path="department" cssStyle="color: red;"/></td>
<td>Title:</td>
<td><form:input path="title" /></td>
<td><form:errors path="title" cssStyle="color: red;"/></td>
<td>Email:</td>
<td><form:input path="email" /></td>
<td><form:errors path="email" cssStyle="color: red;"/></td>
</tr>
</tbody>
</table>
  </div>
</div>

<td><input type="submit" value="Create" /></td>
</form:form>
</body>
</html>